class DQPossibleAnswer < ActiveRecord::Base
	include AliasingColumns
        
  	set_table_name "DQ_POSSIBLE_ANSWERS"
	AliasingColumns.add_aliases columns
		
	belongs_to :distributingquestion,
			   :class_name => "DistributingQuestion",
			   :foreign_key => "distributing_question_id"
	validates_presence_of :possible_answer	
	if  AliasingColumns.get_adapter_name == "oracle"
#		self.primary_key ="ID"
		set_sequence_name table_name()<<"_SEQ" 
	#	before_create :set_id
		def set_id
			 self.ID =connection.next_sequence_value(self.class.sequence_name)	
		end 
	end
		
end
